package dissertation.extensions.ejbmodule.control;

import com.intellij.framework.FrameworkTypeEx;
import com.intellij.framework.addSupport.FrameworkSupportInModuleProvider;
import dissertation.common.constants.Constants;
import dissertation.common.constants.EJBIcons;
import org.jetbrains.annotations.NotNull;

import javax.swing.*;

public class EJBFrameworkType extends FrameworkTypeEx {
    public EJBFrameworkType() {
        super(Constants.EJB_ID);
    }

    @NotNull
    @Override
    public FrameworkSupportInModuleProvider createProvider() {
        return new EJBFrameworkSupportInModuleProvider();
    }

    @NotNull
    @Override
    public String getPresentableName() {
        return Constants.PRESENTABLE_NAME;
    }

    @NotNull
    @Override
    public Icon getIcon() {
        return EJBIcons.EJB_ICON_16x16;
    }
}
